﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.Models.ChangeSecurityQuestionAndAnswerModel>" %>

    <% Html.ValidationSummary(true); %>
    <p>To change your Security Question and Answer please fill in the form below.</p>
    <table>
    <tr>
    <td><label><span style="color: Red;">*</span>Password:</label></td>
    <td><%= Html.PasswordFor(model => model.Password)%></td>
    <td><%= Html.ValidationMessageFor(model => model.Password)%></td>
    </tr>
    <tr>
    <td><label><span style="color: Red;">*</span>New Security Question:</label></td>
    </tr>
    <tr>
    <td colspan="2"><%= Html.TextAreaFor(model => model.SecurityQuestion, new { rows = "5" })%></td>
    <td style="float:left"><%= Html.ValidationMessageFor(model => model.SecurityQuestion)%></td>
    </tr>
    <tr>
    <td><label><span style="color: Red;">*</span>New Security Answer:</label></td>
    <td><%= Html.PasswordFor(model => model.SecurityAnswer)%></td>
    <td><%= Html.ValidationMessageFor(model => model.SecurityAnswer)%></td>
    </tr>
    <tr>
    <td><input type="submit" id="submit" value="Save"/></td>
    <td><span id="spinner" style="display:none"><img src="../Resources/ajax-loader.gif" /></span><span id="spinnermsg" style="display:none"> Saving...</span><span id="validationsummary" style="display:none"><%= Html.ValidationSummary(true) %></span></td>
    </tr>
    </table>
